<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 类是泛指 抽象的
        // 对象是具体的
        class People {
            constructor(age,sex,tall){
                 this.age = age;
                 this.sex = sex;
                 this.tall = tall;
            }
            static address = '郑州';
        }
        let jay = new People(18,'男',180);
        // new关键字做的事：
        // 1. 在内存空间创建新的空对象
        // 2. 让this指向当前对象
        // 3. 执行构造函数里的代码(给实例对象添加属性和方法)
        // 4. 返回当前对象
        let zhou = new People(20,'男',180);
        console.log(People.address);
    </script>
</body>
</html>